{extend name="layout:base" /}
{block name="main_content"}
  <div class="page-content">
    <!--主题-->
    <?php if(!empty($current_page)): ?>
      <div class="page-header">
        <h1>
          您当前操作
          <small>
            <i class="ace-icon fa fa-angle-double-right"></i>
            {$current_page.title|default=''}
          </small>
        </h1>
      </div>
    <?php endif; ?>
    <div class="row">
      <?php if(!empty($notice)): ?>
        <div class="alert alert-block alert-success">
          <button type="button" class="close" data-dismiss="alert">
            <i class="ace-icon fa fa-times"></i>
          </button>
          <i class="ace-icon fa fa-check green"></i>
          {$notice}
        </div>
      <?php endif; ?>
      <div class="col-xs-12">
        <form id="settings-form" class="form-horizontal" method="post">
          <div class="form-group">
            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">
              URL模式：
            </label>
            <div class="col-sm-9">
              <select name="options[url_model]"  class="col-xs-10 col-sm-5" required>
                {foreach name="model_list" item="name" key="value" }
                  <option value="tls" <?php if($value==$url_model){echo('checked="checked"');} ?>>
                    {$name}
                  </option>
                {/foreach}
              </select>
              <span class="help-inline col-xs-12 col-sm-7">
                <span class="middle" id="restwo">*如选择REWRITE,请确保服务器支持REWRITE!</span>
              </span>
            </div>
          </div>
          <div class="space-4"></div>

          <div class="form-group">
            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">
              URL伪静态后缀：
            </label>
            <div class="col-sm-9">
              <input type="text" name="options[url_suffix]" id="url_suffix" value="{$options.url_suffix|default=''}"  class="col-xs-10 col-sm-5" required/>
              <span class="help-inline col-xs-12 col-sm-7">
                <span class="middle" id="restwo">普通模式不支持</span>
              </span>
            </div>
          </div>
          <div class="space-4"></div>

          <div class="clearfix form-actions">
            <div class="col-sm-offset-3 col-sm-9">
              <button class="btn btn-info" type="submit">
                <i class="ace-icon fa fa-check bigger-110"></i>
                保存
              </button>

              &nbsp; &nbsp; &nbsp;
              <button class="btn" type="reset">
                <i class="ace-icon fa fa-undo bigger-110"></i>
                重置
              </button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
{/block}